package com.zmn.oms.persistence.interfaces.product;

import com.zmn.oms.model.entity.product.OrderProductExtend;

import java.util.List;
import org.apache.ibatis.annotations.Param;


/**
 * 类描述：产品扩展
 *
 * @author heciqi
 * @date 2018/12/5 11:22
 */
public interface OrderProductExtendDao {

	int countByOrderId(Long orderId);

	OrderProductExtend findOrderProductExtendByKey(@Param("orderId") Long orderId, @Param("proExtId") Long proExtId);

	List<OrderProductExtend> listByOrderId(Long orderId);

	Integer insertAll(@Param("orderProductExtendList") List<OrderProductExtend> orderProductExtendList);

	int updateByOrderIdAndOldProductId(OrderProductExtend orderProductExtend);

	int deleteByOrderId(Long orderId);
}